package com.zy.openchat.core.model.wallet;

import android.os.Parcel;
import android.os.Parcelable;

import com.zy.openchat.core.model.remittance.RemittanceDetailInfo;

public class WalletExtData implements Parcelable {

    public RemittanceDetailInfo remittanceInfo;


    public WalletExtData(RemittanceDetailInfo remittanceInfo) {
        this.remittanceInfo = remittanceInfo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.remittanceInfo, flags);
    }

    public void readFromParcel(Parcel source) {
        this.remittanceInfo = source.readParcelable(RemittanceDetailInfo.class.getClassLoader());
    }

    public WalletExtData() {
    }

    protected WalletExtData(Parcel in) {
        this.remittanceInfo = in.readParcelable(RemittanceDetailInfo.class.getClassLoader());
    }

    public static final Parcelable.Creator<WalletExtData> CREATOR = new Parcelable.Creator<WalletExtData>() {
        @Override
        public WalletExtData createFromParcel(Parcel source) {
            return new WalletExtData(source);
        }

        @Override
        public WalletExtData[] newArray(int size) {
            return new WalletExtData[size];
        }
    };
}
